package com.neu.credit.creditscore.entity.parking;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.util.Date;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("parking_lots")
@Schema(name = "ParkingLots", description = "停车场信息表")
public class ParkingLots {

    @Schema(description = "停车场ID，自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "停车场名称")
    private String parkingLotName;

    @Schema(description = "停车场位置")
    private String parkingLotLocation;

    @Schema(description = "停车场类型 0 默认 1 市中心区域 2 商业中心区 3 住宅区 4 旅游景点区 5 医院周边 6 室内 7 室外 8 露天 9 地下")
    private Integer parkingLotType;

    @Schema(description = "总车位数")
    private Integer totalSpaces;
    @Schema(description = "停车场封面图片URL")
    private String image;

    @Schema(description = "剩余车位数")
    private Integer leftCount;

    @Schema(description = "收费标准")
    private Integer price;

    @Schema(description = "是否删除")
    private Integer deleted;

    @Schema(description = "创建时间")
    private Date createdAt;

    @Schema(description = "更新时间")
    private Date updatedAt;

    @Override
    public String toString() {
        return "ParkingLots{" +
                "id=" + id +
                ", parkingLotName='" + parkingLotName + '\'' +
                ", parkingLotLocation='" + parkingLotLocation + '\'' +
                ", parkingLotType=" + parkingLotType +
                ", totalSpaces=" + totalSpaces +
                ", image='" + image + '\'' +
                ", leftCount=" + leftCount +
                ", price=" + price +
                ", deleted=" + deleted +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }
}